package com.yuanfeng.job.job;



import com.yuanfeng.job.service.UpdateOrderStatusService;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 超过48小时售后退款订单商家未处理 自动同意
 */
public class RefundOrderHandleJob implements BaseJob {
    private static final Logger logger = LoggerFactory.getLogger(RefundOrderHandleJob.class);

    @Autowired
    private UpdateOrderStatusService updateOrderStatusService;

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {

        // 查询超过48小时商家未处理的订单
        updateOrderStatusService.refundOrderHandleJob();

    }

}
